
import { get, post } from '../utils/request';
import { HTTP_REQUEST_URL } from '../config/app.js';

// 获得新闻政策分页
export const getNewsList = (param) => {
  return get(HTTP_REQUEST_URL,'/admin-api/crm/news/page',param,false);
};

// 获得新闻政策分类
export const getNewsCat = (type) => {
  return get(HTTP_REQUEST_URL,'/app-api/system/dict-data/type',{type:type},false);
};

// 获得新闻详情
export const getNewsDetail = (id) => {
  return get(HTTP_REQUEST_URL,'/admin-api/crm/news/get?id='+id,{},false);
};

